const initialState = {
    modalForm: null
}
export default (state = initialState, action) => {
    const {type, data} = action
    switch (type) {
        case 'showModalForm':
            return {...state, modalForm: data}
        case 'hideModalForm':
            return {...state, modalForm: null}
        default:
            return initialState
    }
}
